package org.gas.barapraja.route;

import org.gas.barapraja.db.entity.Account;

public class AccountTokenProvider implements ServerTokenDetails{

	private Account account;
	
	private boolean enough=true;
	
	public AccountTokenProvider(Account account){
		this.account=account;
	}
	@Override
	public boolean tokenEnough() {
		
		
		return enough;
	}

	@Override
	public void updateSentToken(int token) {
		int tokenValue=account.getToken().getTokenValue();
		tokenValue-=token;
	}

	@Override
	public void updatePurchasedToken(int token) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public int currentToken() {
		// TODO Auto-generated method stub
		return 0;
	}

}
